import instance_gupiao from './gupiao_instance.js';
import {getNow} from "../../utils/utils.js";

export const getPrice_gupiao = (id) => {
  return instance_gupiao.get("/vapi/v1/getquotation", {
    params: {
      all: 1,
      rcid: 5353,
      pointType: 'string',
      group: 'quotation_minute_ab',
      market_type: 'ab',
      new_Format: 1,
      name: null,
      finClientType: 'pc',
      query: id,
      code: id,
    }
  });
};
// https://finance.pae.baidu.com/vapi/v1/analysis?code=300845&market=ab&finClientType=pc
export const getPrice_gupiao_name = (id) => {
  return instance_gupiao.get("/vapi/v1/analysis", {
    params: {
      code: id,
      market: 'ab',
      finClientType: 'pc',
    }
  });
};
// https://finance.pae.baidu.com/vapi/v1/getquotation?
// all=1&srcid=5353&pointType=string&group=quotation_minute_ab&market_type=ab&new_Format=1&name=null&finClientType=pc&query=300845&code=300845
